﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;
namespace GPMS.Model
{
    [MetadataType(typeof(MessageMetaData))]
    public partial class Message
    {
        public class MessageMetaData
        {
            [Required(ErrorMessage = "必须填写标题")]
            [Display(Name="标题")]
            public object Title { get; set; }

            [Required(ErrorMessage = "必须填写内容")]
            [Display(Name = "内容")]
            public object Context { get; set; }
        }
    }
}
